import request from '../../../../../public/js/common/api/api.js';
const FeedBackUrl = Utils.CurDomain.FeedBackUrl;
const AccountUrl = Utils.CurDomain.AccountUrl;
const SysCfgUrl = Utils.CurDomain.SysCfgUrl;
const configuration = {
    contentType: 'application/json',
    dataType: 'json',
    async: true,
    dataFilter(data, type) {
        return data;
    },
};

export default class FeedbackDtlApi {
    // 详情
    static getDangerDetails(id) {
        return request.get(`${FeedBackUrl}/potentialdangers/${id}`);
    }

    // 获取登录用户对应的职员信息
    static getLoginUserToStaff() {
        return request.get(`${AccountUrl}/accounts/eply`);
    }
    /**
     * 根据图片id获取图片地址
     * @param {*图片id} id
     * @returns
     */
    static requestFilePath(id) {
        return request.get(`${SysCfgUrl}/yyattachments/${id}/url`);
    }
}
